<?php

namespace App\Params\Backend;

use App\Params\Param;
/**
 * 角色绑定菜单参数
 *
 * @author: WangBin
 * @date: 2021/7/26
 * @mail: <849850352@qq.com>
 */
class RoleUpdateMenuParam extends Param
{
    public $role_id;
    public $menu_id;

    public function rules()
    {
        return [
            'menu_id' => 'nullable|array',
            'role_id' => 'nullable|integer'
        ];
    }

    /**
     * @return mixed
     */
    public function getRoleId()
    {
        return $this->role_id;
    }

    /**
     * @param mixed $role_id
     */
    public function setRoleId($role_id): void
    {
        $this->role_id = $role_id;
    }

    /**
     * @return mixed
     */
    public function getMenuId()
    {
        return $this->menu_id;
    }

    /**
     * @param mixed $menu_id
     */
    public function setMenuId($menu_id): void
    {
        $this->menu_id = $menu_id;
    }
}
